package cn.wsalix.admin.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.CommonEntity;

/**
 * @author jskyme
 * 角色业务权限
 */
@Entity
@Table(name = "REQUIRES_ROLE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@DynamicUpdate
@DynamicInsert
@Data
@EqualsAndHashCode(callSuper = false)
public class AuthData extends CommonEntity {
	public AuthData(String code, String name) {
		this.code = code;
		this.name = name;
	}

	public AuthData() {
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 3924154095534950186L;
	private String code;
	private String name;

}
